package pojo.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class User {

    private Long userID;                               //用户ID
    private String userSex;                         //用户性别
    private String userName;                           //用户名
    private String phoneNumber;                              //电话号码
    private String password;                           //密码
    private String email;                              //邮箱
    private int integral;                              //积分
    private double balance;                             //yve
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;                            //创建时间
    private Integer userStatus;
    private String userImg;                             //头像路径

    public User() {
    }

    public User(String userName, String password, String email, int integral, double balance) {
        this.userName = userName;
        this.password = password;
        this.email = email;
        this.integral = integral;
        this.balance = balance;
    }

    public User(String userName, String password, String email, int integral, double balance, Integer userStatus) {
        this.userName = userName;
        this.password = password;
        this.email = email;
        this.integral = integral;
        this.balance = balance;
        this.userStatus = userStatus;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Long getUserID() {
        return userID;
    }

    public void setUserID(Long userID) {
        this.userID = userID;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    @Override
    public String toString() {
        return "User{" +
                "userID=" + userID +
                ", userSex=" + userSex +
                ", userName='" + userName + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", integral=" + integral +
                ", balance=" + balance +
                ", createTime=" + createTime +
                ", userStatus=" + userStatus +
                ", userImg='" + userImg + '\'' +
                '}';
    }
}
